package com.gxc.dbcore.util;

/**
 * 查询条件的比较类型
 * 
 * @author gxc
 * 
 */
public class CompareType {

	public static final Integer EQUAL = 1;
	public static final Integer LIKE = 2;
	public static final Integer LIKE_START = 3;
	public static final Integer LIKE_END = 4;
	public static final Integer LESS_THAN = 5;
	public static final Integer LESS_THAN_EQUAL = 6;
	public static final Integer MORE_THAN = 7;
	public static final Integer MORE_THAN_EQUAL = 8;
	public static final Integer BETWEEN = 9;

	public static boolean isValid(Integer compareType) {
		if (compareType >= 1 && compareType <= 9) {
			return true;
		}
		return false;
	}

}
